﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="DaoYou.Web.Search" EnableEventValidation="false"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="portfolio sixteen columns row">
        <h2 class="separator_title">
            <span>搜索</span>导游</h2>
        <div class="separator">
            <div class="green">
            </div>
            <div class="grey">
            </div>
        </div>
        <%-- <div class="three columns alpha">
            <asp:DropDownList ID="ddlProvince" ClientIDMode="Static" runat="server" Height="31px">
            </asp:DropDownList>
        </div>
        <div class="three columns alpha">
            <asp:DropDownList ID="ddlCity" ClientIDMode="Static" runat="server" Height="31px">
            </asp:DropDownList>
        </div>
        <div class="three columns alpha"><asp:DropDownList ID="ddlArea" ClientIDMode="Static" runat="server" Height="31px">
            </asp:DropDownList></div>--%>
        <div class="four columns omega">
            <input class="search" runat="server" id="txtKeyword" type="text" name="search" placeholder="输入城市进行查询" />
        </div>
        <div class="one columns omega">
            &nbsp;</div>
        <div class="two columns omega">
            <asp:Button ID="btnSearch" runat="server" CssClass="button green medium" Text="搜索导游"
                OnClick="btnSearch_Click" />
        </div>
        <% if (this.SearchResult != null && this.SearchResult.Count > 0)
           {%>
        <div class="columns3 sixteen columns row alpha">
            <ul class="portfolio_sort">
                <%foreach (RenChangYou.Model.DY_User user in this.SearchResult)
                  {
                %>
                <li class="project one-third column alpha"><a href="Detail.aspx?username=<%=user.UserName %>"
                    title="<%= user.FullName %>">
                    <img src="../upload/<%= user.UserName %>/<%= user.HeadImageName %>" alt="<%= user.FullName %>" /></a></a>
                    <h3>
                        <%= user.FullName %></h3>
                    <div class="description">
                        <%= this.GetUserIntroduction(user.UserName)%>
                    </div>
                </li>
                <%} %>
            </ul>
        </div>
        <%} %>
    </div>
</asp:Content>
